<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page
	import="ra.db.connections.*,java.sql.ResultSet,java.sql.SQLException"
	import="front.net.entity.cookie.ICookieConstant"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
	String username = request.getParameter(ICookieConstant.USER_NAME);
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<div>
	<!-- this is title -->
	<table cellpadding="0" cellspacing="0" border="0">
		<tbody>
			<tr>
				<td>
					<div class="banner-box" style="height:40px;">
						<table border="0" cellpadding="0" cellspacing="0">
							<tbody>
								<tr>
									<td>
										<div class="banner-logo"></div>
									</td>
									<td>
										<div>历史记录</div>
									</td>
								</tr>
							</tbody>
						</table>
						<div class="close-button"></div>
					</div>
					<div>
						<div class="container">
							<div class="display-side-pane" style="display:none"></div>
							<div class="list-container">
								<table border="0" cellpadding="0" cellspacing="0"
									class="container-table" id="HistoryCTTable">
									<thead>
										<tr>
											<th style="width:2px;height:25px"></th>
											<th>
												<div style="padding-right:10px"></div></th>
											<th class="table-header">
												<div style="width:75px;">用户名</div></th>
											<th class="table-header">
												<div style="width:175px;">开始时间</div></th>
											<th class="table-header">
												<div style="width:175px;">结束时间</div></th>
											<th class="table-header">
												<div style="width:175px;">终止时间</div></th>
										</tr>
									</thead>
									<tbody id="HistoryCTBody">
										<%
											ResultSet rs = CTHistory.readIdHis(username);
											while (rs.next()) {
												out.println("<tr class='container-row'>");
												out.println("<td class='active-indicator'></td>");
												out.println("<td>");
												out.println("<div style='padding-right:10px'></div>");
												out.println("<td>" + rs.getString("name") + "</td>");
												out.println("<td>" + rs.getString("ct_st_date") + "</td>");
												out.println("<td>" + rs.getString("ct_end_date") + "</td>");
												out.println("<td>"
														+ rs.getString("ct_ter_date").substring(0, 9) + "</td>");
												out.println("</tr>");
											}
										%>
									</tbody>
								</table>
								<div>
									<table>
										<thead>
											<tr>
												<td>
													<div style="width:200px"></div></td>
												<td>
													<div class="prePage">上一页</div></td>
												<td>
													<div class="nextPage">下一页</div></td>
												<td>
													<div style="width:200px"></div></td>
											</tr>
										</thead>
									</table>
								</div>
							</div>
						</div>
					</div></td>
			</tr>
		</tbody>
	</table>
</div>